//
//  AnswerCell.m
//  EPartyConstruction
//
//  Created by df on 16/7/21.
//  Copyright © 2016年 Dyf. All rights reserved.
//

#import "AnswerCell.h"
@interface AnswerCell ()

@end
@implementation AnswerCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self prepareLayout];
    }
    return self;
}
- (void)prepareLayout {
    self.choseBtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.choseBtn.frame = CGRectMake(20, 5, 30, 30);
    [self.choseBtn setImage:[UIImage imageNamed:@"党建_未选中"] forState:(UIControlStateNormal)];
    [self.choseBtn setImage:[UIImage imageNamed:@"党建_选中"] forState:(UIControlStateSelected)];
//    self.choseBtn.enabled = NO;
    [self.contentView addSubview:self.choseBtn];

    self.contentL  = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.choseBtn.frame), 5,ScreenWidth - 60, 30)];
    self.contentL.text = self.strTitle;
    self.contentL.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.contentL];
}
-(void)setStringTitle:(NSString *)stringTitle
{
    self.contentL.text = stringTitle;
}
@end
